WIP: added initial polyline functionality.