Copy-paste from v5 unit 1.