Added type to parse function