Tweaked query so it is more efficient by adding 'break;'