Adding an MIT license to this to make it easy to reuse the code anywhere. It's a tiny amount of code anyway...