Mine rate related fixes and improvments.