Used MessageListener to track mining count.
Renamed gems to gemInfos.