Added url query function.