Adding checks for file sizes.