Any error level other than 0 on WriteValue() indicates that the function failed.

What error level would you be looking for?

I'm open to suggestions. I know you are very knowledgeable in regards to best practices, so I'm receptive to your thoughts.