Removed sleep from query