Added code for extracting current URL params.