The globals need to be fixed. I'll have this fixed on monday It should only take modification of a few lines.