Results now displayed even in case of two lines with different variables.