Model support + scripting infrastructure