MAXMSGSIZE broke when I cleaned up this code - fixed