Updated cd script