Changing return of generate titles