Added some debug output to analyzer, fixed bug.