Backport for lucid.