Add some convenience functions.