I'll rewrite this to don't read unnecessary data from the file system.