Add several useful functions for request filtering