A general utility library from redfelineninja.org.uk