Adding older code that I found on my Work machine from earlier attempts to learn something.