Added error checking on input