Improved infinite growth of file