Refactored using of_msg_lib.