If you're non-American you need to allow several hours to clear formalities in Miami, if that's your port of entry into the US. Took me 7 hours once.