Line snapping added.