Remove query cycle