Maxcube cleanup of code in C message