Changed g_warning's back to printf's.