Generate the scripting a bit easier