Add thales function headers back in after being lost in the merge.