Add more code for modsupport API for models