Made prev and next nullable if they don't exist