Changed to scan for changes first, then apply.