Started working on code to simulate query criteria offline