Very basic input handling.