Improve getmininginfo