Add utility functions