Updated continue query