Add a few more helper functions.