aDDED CODE TO CHECK FOR ACTIVE PROJECTS