The old version is OK, but the new version is much shorter. Do you want to consider the function of memory items?