Solution for file stats