Added check for local changes