Switched to discounted learning rather than average reward.