A piece of code so nice you used it twice?