Added MSG_TYPE hook variable