Added functionality to remove lines with speceific orientation.