Added file capping