I did not write this code, but I like it.