Government will publish legislation next year.