* Refactored the PORT mapping. I still have a problem when port = 1 and i = 3, but I don't know why ...