Line function added