Fixed interface to return old values.
Some more work on putifmatch.