Templated environment code (remove in other env)