Finished reward function for TrackRollout.