Added chaining interface for createChain.