Adding input mask, constraint processing