Not sure but your first debug.print call is in a loop so I'm guessing that could be why.