More helper functions.