Adding a functionality to accept input