Made the flushing to disk optional via a -p(erformance) flag