Created new library  for returning file segments