Added an INVALID_PARAMETERS error when parameters are not well typed