Update regeneration.py