Which factor contributed most to Florida becoming a U.S. territory?

The outcome of the Seminole Wars
The weakening of Spain's hold over its colonial possessions
The desire of Southern politicians to expand slavery into new territories
The development of the Gulf of Mexico as an important commercial waterway