Refactored the Parser read file method from the actual parsing.