Added chaining api.