The function LINES always returns 1 if used for a queue. Use the function QUEUED to get the number of lines currently in the queue.