You should probably add a 'break' or use locate() instead.