Formatting and optimization.