Optimize the msg, and adjust the Handler