Update LastWrite variable.