Constructor duplicates resetQuery() code