Make linesPerItem global.
Initial check in with comments section.