Adding handlers to nodes the right way.