Implemented message script generation.