Add succesor funtion

Signed-off-by: vrodri3 <victor.manuel.rodriguez.bahena@intel.com>