Basic input handling.