Add auto-comment functionality.