> Added input error checking