Adding a tunnel function.