Cleaned up Teleporting, added some reusable Util functions