Utility functions for web applications