Optimize setComment, refs #40