Use passed environment