Added an input handling class.