Corrected the number of shards/reducers to 24
Attempt to ensure changes are committed to disk at the end.