Added conditions based on the options; Added labels validation.