Added despawn event to factory