Check modified time properly.