Copy from https://gitlab.com/bronsonbdevost/next_afterf.
