Handle exception caused by too long formula
Create temporary directory to avoid read/write on same file

Less print lines