Added conditional to check whether processFile is being executed from command line, and prevent arguments handling if it is not