Modify to copy to local directory instead