Updated environment part to raise notifications when environment variables change