Merge pull request #3 from yotamhc/in_ports_masked2

In ports masked updates