Added invert line start and end