Removed generated author tag. I did not write most of this code. It was
pieced together from various sources online.