Add condition checks to terminate at Invalid Clock & Mode set