We should probably make this one declarative by putting it in the listeners block of the defaults.