Make pinned list a linked list instead of hardcoded array.