Implemented query flags