New legislation on cremations will ensure that Scotland's baby ashes scandal will never be repeated, the public health minister has said.

Maureen Watt made the pledge as MSPs unanimously backed the general principles of the Burial and Cremation (Scotland) Bill in a vote at the Scottish Parliament.

The Bill was brought forward after it emerged staff at Mortonhall crematorium in Edinburgh had secretly buried the ashes of babies for decades without their parents' knowledge, raising concerns about practices in other local authorities.

It follows on from the recommendations of Lord Bonomy's Infant Cremation Commission.

Ms Watt set out plans to bring forward a series of amendments in response to calls from Holyrood's Health and Sport Committee to strengthen its provisions.

Convener Duncan McNeil said MSPs had heard moving evidence of the "long-lasting and devastating" impact of the ashes scandal.

He said: "The bereaved parents who shared their views with the committee sent a very clear message - this Bill must ensure that the poor practice of the past should never happen again."

Ms Watt said the Bill would make "valuable and much needed" improvements to burial and cremation laws which were more than 100-years-old.

She said: "There are a number of problems with the current system.

"There is a lack of consistency in some important processes.

"Those processes can be complicated and difficult to understand at the best of times, let alone when dealing with the loss of a loved one.

"There can also be a lack of clear information given to the person who is making the funeral arrangements.

"Lord Bonomy's Infant Cremation Commission identified all too clearly the potential impact of these problems.

"The steps taken in this Bill will help ensure that such failings can never occur again."

She confirmed amendments to ensure that women experiencing a pregnancy loss were put at the centre of decision-making over any remains, to improve the process following a post 24-week termination and to strengthen what crematoriums and funeral director could do with ashes.

Labour MSP Jenny Marra said: "Scottish Labour welcomes today that the Bill will complete 25 of the Infant Cremation Commission's 64 recommendations.

"What happened with infant ashes in Scotland should never be allowed to happen again and we must ensure that women are at the centre of decisions at a very, very difficult time.

"I do welcome the minister's commitment today to amendments at stage two to give women that time to make decisions after pregnancy loss."

Conservative MSP Nanette Milne added: "The Bill goes some way towards ensuring that past bad practice will not recur although I think it will need to be refined as it goes through the next stages of the parliamentary process."

Holyrood's Local Government and Regeneration Committee, which looked at aspects of the Bill relating to burials, complained that it "lacks ambition" and called for the introduction of licensing for funeral directors.

Ms Watt said: "At the moment there is not enough evidence about the industry as a whole to say with certainty that licensing is required or what form a licensing scheme would take."

She said the inspectors appointed under the Bill would review the industry and make recommendations about the need for licensing.