Need to flush explicitly to write content to the file actually