Used to be an internal class to URLFilter, but this didn't play well with Android compiled version, hence definint it in a separate file