Work on the color middleware logic.