Move some helpful methods into the g.core