The new code is more robust and more flexible. It provides detailed error information in GError objects.