Added seperate method for processing input, and also added a command line indicator