Finishes setting up directory and sets the time.