SetNext implementation