Added a couple of small functions.