Adding some additional utility functions.