Added basic input processing