Added Pins functionality, basic validation