Added portMode function description