Some optimization in composition.