Removed query function call