Add write_progress