Rename to attach_to_file
Use attach_to_file