Added a safeMode for loanding customers when fread cannot be used.
Simplified the code, no agregation now
Copied removed code here for later use