Handling bad input.