How can a field remember the last value?