Added masked input.

Signed-off-by:  <akorolex>