Replaced confusing integer port settings with enumerations.