Changed the messageCode behaver.