Refactored final_dir to dest_dir