Call deleteOldMaps at the start of process function