More methods for adding segments to files.