Fixed logging.
incresed write time.