Added chaining functionality.