Improved the code of the teleport tube.