Useful general toolkit