Cleaned up the GEP codes. There seems to be more optimization
opportunities in external function handling