Basic utility functions added