Added topic fetch algorithm