Some helper functions for everything (and some finger-stretching in C++)