Part III.  Helper functions

Helper functions common for backend implementation