Added safe teleporting.