Cleaned up code that enables sides.