Loops added, so number is checked and yes or no is checked