Fix for issue #3
Merge pull request #4 from andrewtaylor/issue3

Fix for issue #3