Added comments and comparison of values to avoid changes for the same value.