Added the allocatetunnel() call