Tidied up queryUrl.