Common routines used by reggo packages