Added additional functions and ability to operate on lines