Document compose function.