Changed the following lines to use new fetchParam function. fetch_param in depreciated.