Added doctest to log_progress