Identify the option containing a sentence fragment.
A.
The carpenter measured everything twice. To avoid costly mistakes.
B.
The carpenter measured everything twice. He wanted to avoid costly mistakes.
C.
The carpenter measured everything twice, and he wanted to avoid costly mistakes.
D.
The carpenter measured everything twice to avoid costly mistakes.