Modified codetunnel stuff.