Added chaining functionality