Added teleport util class, fixed errors.

Added teleport util class, fixed errors.