Enable error checking and turn on duplicate name checking.