Optimized Drew's teleport function