Cleaned up Pins Controller.