I'll rename `d` in here then :)