Pass query arguments to handlers