First attempt to handle input