Add a comment explaining why extend is being used