Added new utility functions.