Added top-level utility functions