Input and output masks

Follow