Debug lines discovered the principle was being created in the wrong block of code. Moving to a more correect location