From what I've read about immigration at MIA, with a 2 hour connection I'd just be pleased to avoid missing the next flight. I assume this is all on one ticket/PNR? If so, a missed connection will have to be resolved by the airline at their cost (inc hotel accommodation and meals if needed).