Regenerate function added. If table's structure changed.