Added stack for creating the line