callbackOpen and callbackClose added to the API