Added get chapter names and get chapter content to the logic.