Add inheritense loop check.