Added comment crediting the code within.