Refactored display_progress()