Parameterize compose methods.