More work getting the script block generator working.