Added two more utility functions.