Add helper functions.