Added beginning segment functionality