Added a getParameter function