More work around script scope