A judge has asked for a psychiatric report to be prepared on a 36-year-old man accused of the stabbing rampage in Whanganui yesterday.
One person was killed and five others injured during the incident at a property on Wicksteed St and the neighbouring New World supermarket carpark.
Counsel for the defendant, Richard Leith, told the court his client had mental health issues and was on medication.
Mr Leith applied for a section 38 to ascertain whether insanity was available as a defence and whether his client was fit to plead or stand trial.
Judge Chris Sygrove approved the application and remanded the man in custody.
He granted the man interim name suppression and ordered him to reappear on 11 February.
Media were ordered to pixilate images of the man because of his mental health issues.
The accused, who appeared in a full-length smock of a heavy quilted material, stared at the ground throughout his brief appearance.