Added parseParts function.