Added basic input handler