Added basic utility functions