Implement msgHandle