Merge pull request #34 from am11/master

Code: Fixes condition for reporting