Completed OptimizeXAxis