Adding option for line type.
Simplifying abstracted line function (no longer needs to be passed "this" argument).