Added simple input handler class.