Attempt to prevent bad inputs from stopping program.