- added input handling.