An update to the g_dump function