Made getMatchingPrograms more accurate