Implemented safe addition of sides