Set environment in parameter