Why change dir here? It's not required.