Some sundry stuff. Need to get a better handle on testing functions.