Added chaining of callbacks.