Changed teleportTo to be onLeave