Mining bill gets it right