Adjusted styling, refactored formulas to minimize side effects.