Moved inner function definitions to fix getRandomFortune.