Refine the log