Added utils_checked, updated utils_gradient.