Added debug to original, added testing segment init code