Implemented dashed lines (should be improved at some point)