More error handling regarding user input.