More utility functions.