Ugly Enviro-code. Functional.