implemented LRS and Segment services