Makes g done work