Provisional fix for problem with prediction errors (problem was reward spread in time by eligibility), move parameters into function call for ease of tweaking.