Restructuring complete, implementing logic.