Add masking functions to Interface class to select portions of interface by port or by data.