Fixed #37 - Performance improvement in extracting GEMs