New utility functions