Changes wd and moves log