Minor tweaks to sync the directory