Add various tunneling related functions