Added ref/stub for g