Added delay for queries