Add callback when registering in background.