Intermediate commit after studying https://toolkit.shotgunsoftware.com/entries/24016857