Various bits of code that are constantly reused by ZDS and are under a BSD license