"The court has elected not to accept that plea agreement. So, sir, if you want, at this point, you can withdraw your guilty plea and go to trial," Judge Wright said.
"When you continue to engage in this activity even after your activities killed someone, I'm having a tough time not staying within the guidelines."
After a short talk with his lawyer, Wright agreed to the extra half year.
Addressing the court on Monday, before sentencing, Walter apologised for his actions:
"My actions caused a lot of pain, and for that I'm truly remorseful," he said.
"I'm not that type of person who wants to hurt anybody. That's not me. But on the paperwork where it says that I continued to conduct in that kind of behaviour after I knew that there was death, that's not the truth, your honour."
Walter also claimed that he had only sold drugs to a man named Cameron Pettit — who also has charges against him, though his case is still pending — and never knew the drugs were for Miller.
"I dealt with Cameron Pettit, and he led me to believe that he was going to ingest the pills that I sold him," said Walter.
"I'm still taking responsibility for everything that happened, but he never told me it was for another person. He was experienced in using those pills. I thought it was for him — for personal use."
Walter was the second man to be charged in relation to Miller's death — Ryan Reavis, 39, pleaded guilty to a drug distribution charge and was sentenced to nearly 11 years behind bars.
SUICIDE AND DEPRESSION
Where to get help:
• Lifeline: 0800 543 354 (available 24/7)
• Suicide Crisis Helpline: 0508 828 865 (0508 TAUTOKO) (available 24/7)
• Youthline: 0800 376 633 or text 234 (available 24/7)
• Kidsline: 0800 543 754 (available 24/7)
• Whatsup: 0800 942 8787 (12pm to 11pm)
• Depression helpline: 0800 111 757 or text 4202 (available 24/7)
• Anxiety helpline: 0800 269 4389 (0800 ANXIETY) (available 24/7)
• Rainbow Youth: (09) 376 4155
If it is an emergency and you feel like you or someone else is at risk, call 111.
Where to get help for Drug and Alcohol Addiction: https://www.healthpoint.co.nz/mental-health-addictions/