Return mode fn results when calling modebutton through interface; pack scripts