@Joakim Danielson, Thanks! Creating another variable to represent the latest value is also a good suggestion!