Environment call be passed in from outside