Removed repeated code.

Also corrected a comment.