Implemented progress bar for retrieval of messages.