More generic way of handling Scripting.