The code does more than I thought.