Latest iteration of the code. Unified message system and error codes