Cleaned up pins controller file