Revenue function tweak. Batch write gaps for project structures in path "writeGaps".