Used this to good effect to fix a few small issues that had gone unnoticed. Also removed the Message callback which was kind of pointless, since Unity already has a well-established way of outputting warnings and errors.