I slapped together an apixu script that seems to be working. I would still like to see yours though
Thanks