Checks on input parameters have been added.