Refactored the title guesser module.