Added a basic input handler.