Added number of peers to progressbar
refactoring