Added parseURLParams function.