Programmatically create a pin.