Used helper function set_progress