Some convenience functions.