Updated pins controller