Addded check for environmantal variable CI