Updated getLastChanges method