Adding utility functions.