Added the setLine function.