Generalize comment and node methods.