Little optimization for the class, add refresh function in waiting server communication.