Merged with FileParser method, added output methods