Set environment