Added a function to get url parameters.