Added basic input processing in command line.