Added successor/predecessor checker