Added pipe to safeUpdate