Added an ::addFile function