Added better debugging output for input checking.