Adding logic for parse files