Added some functionality to teleport object.