Rename chain to compose to be more mathematically correct.