Utility functions added