Update gen (not functional yet)