Implemented ugly version of polylines, will redo tomorrow