I'm getting an error with the new script now. Cannot read properties of undefined (reading 'register')
Fixed this myself, my Book plugin was way out of date.