Changed the way lineStyle is called to avoid code duplication