Added a few basic helper functions