I'm not sure if the original author is maintaining this now but I have an update to date fork on: https://github.com/rexchoppers/SmartInvs if anyone needs it.