Removed parseFile method, TODO better implementation