Change functionality of QuerySelect class.