Fixes issue #10
Merge pull request #12 from harikt/issue10

Fixes issue #10