Sierra Leone has passed a mining bill it says should help overcome years of mismanagement and corruption in the nation’s mining industry.

The bill looks to give royalties back to the communities of the nation, devastated by a civil war dating from 1991-2002 that made it one of the world’s poorest countries.

Sierra Leone Minister of Minerals and Presidential Affairs Alpha Kanu told Reuters the bill has been approved by parliament.