Store total earnings in transient. #990