Using file instead of copy module