Added active-inactive programs
Fixed environments