Added last modification detection to reduce uploading.