1996 Ford F-150 Question: When engine is hot restarts and idles very rough for a couple minutes then fine.

The trucks starts right up and runs fine. But when trying restart it, it starts, but runs extremely rough for a couple minutes. Then it evens out and runs fine again. What could be causing the rough restarts?