Simple numeric scripting engine