Modified WrapG1.cc