Updated pin controller
Removed json stuff