Created getParameter func