Included mapOnly function and improved on the write2disk settings