Added IDs to segment objects for lines