Added function to create and move into directory