[WIP] Scripting support