Added write of patch info