refactoring: Collector class added to collect and format status messages.