For script code we do not want the arrays accessible so all that get accessed need to be moved into the struct first.