In the 1840s, the Tokugawa Shogunate began to anticipate that either British or French military might attack Japan. Takashima Shuhan (1798-1866) submitted a petition to the shogun calling for the purchase of Western firearms. In 1841, a demonstration of Western gunnery made a strong impression. Powerful factions in the shogunate resisted change.