Fixed bug in and simplified code that enforced opcodes that come at the end of the message.