Daley - Finished implementing segment parser