Support for user-defined maintscripts