Add composition_operation for the calculation of the return value.
Fix formatting