Experimental attempt at reconciling the type error stuff.

Doesn't seem to work. Moving on to another approach.
This version works! Now the conf_subj_periodics has 196 rows.

I'll clean it up a bit in a second.
Cleaning things up a bit. Still runs properly.