Added a removeAllCallbacks method.