Minor changes, now copies then deletes rather then using mv command.