Update for loops in stageprompt