Backport at-exp.
Backport b7360c76d7bd.