Thayer, Isaac, 1804-1825