Input handling functionality in Main should be protected/private.