Wait, why are you returning path? It's okay to pass it in, but I don't think it's okay to return it.