Added initEGP() function to lib_egp_base