Added utility functions.