A scriptable task engine