Miscellaneous utility functions.