Code cleanup mess_ptr.