Implement mtime to fix new file issues