The solution to my problem was more complex than I expected. You can find the explanation in the video at 51:38.