Corrected number of input argument checking.