Got the balance report working (but not thoroughly tested).