Some simple registry utilities