Added code to check if a candidate belongs to a data seequence