Added file parse function