Added function to parse the pin things