you should not use OnModCommand, instead use AddCommand in the MODCONSTRUCTOR, see other modules for an example.