Updating the plugin to use the new teleport APIs