There are several places where you've used a value of 0 for pass when calling APIs that expect a pass and you don't really have a pass-number to use.  Should we omit the pass number when it's 0 ?