Used pushd and popd