Some handy helper classes.