Added active flag for undeleted items