Updated with a better file size calculator