New utility functions.