Added line functionality