Generating tunnels