Original exploratory work by Milo (@TheUser-1231) in PR #481. Co-authored-by: Milo <[email protected]>