Filtering projects on state != completed and removing useless code