Implement utility functions