Improved fortune cookie function and use long output