Added modification date check to improve performance