Accept pointers to query structs