Miscellaneous helper classes.