Portable port of Mr Nukealizer's source code. I don't know the licensing details, so use at your own risk.