Introduced input handling.