Moved regex pattern to start of file
Flushing to disk after defrag