LineGenerator working. Needs testing