Finished error checking on input arguments