A library of handy utility functions