Have a better input handling strategy.