Added some helper functions, small progress in 'line'.