Attempting split_stack and commented out debugging prints