/* ========================================================================= */
/* The following functions were taken from the SGE library */
/* ========================================================================= */
/* The following functions were taken from the SGE library */