Rewrote teleporting code for the millionth time, should be the last
time.