Updated getQueryParam method signature