I noticed `ctx` is instantiated twice, but didn't want to bog this PR.