Added an option to disable fsync