Rewrote recursive call to use existing space parameter.