Pain control circuits of the brain stem

Which region is involved in pain control circuits of the brainstem?
A. Cingulate cortex
B. Thalamus
C. Dorsal horn of the spinal cord
D. Periaqueductal gray