Changing port configuration