MscPrototype code