with_progress function

Progress option