calling a function recursively with the timer

i have this code below where gamewords is an array of arrasy of this word where thisword[1] is a word and thisword[2] is a value that needs to be how long untill the next one launches however im not sure if it is possible to call this within the function that it is calling. Is there a way to do this? if not how can i use a variable timed timer to launch a function?

[code]
local dispword= function()
thisword=gamewords[i];
local word = ui.newButton{
default = “cloud.png”,
onPress = removeWord,
text = thisword[1],
emboss = true
}
i =i+1
timer.performWithDelay(thisword[2], dispword,1)
end
thisword=gamewords[1];

timer.performWithDelay(thisword[2], dispword,1)

[/code] [import]uid: 41000 topic_id: 8682 reply_id: 308682[/import]