Partially done with regeneration. Several bugs occur.