Use linked list for buffer
Fixing lineTarg