Fucking finally. It's a mess, but it works.