and you'll probably need to initialize and maintain a separate key value to keep track of the previous value