Made changes to the pins controller