Added mako_env function