Prevent callbacks from being called multiple times