Add files function.