Define vars into env map that is passed to function