Removed debug log_write()