Break loop if target found