Add functionality to add a file