Added code to uniquify lines