The notebook currently exposes a lot of nitty gritty code to the user which should be encapsulated and (eventually) moved to the safep package.