Included utility functions

Forgot to include basic helper functions