Modified Pins controller to remove excess