Added new mode of functioning: validate.