Moved cd statement up.