Threading the clock through the env