I created a new post, partly because I didn’t have time to debug, but also because it was too unclear.