Credits for the best explanation of our approach by a non-rubberduck go to Kevin