Added getParameterByName function