Added chain.apply