Added additional validation and added the break instruction