Updated APIController so already set parameters are not reset