Fix for issue 4.
Merge pull request #7 from glennsayers/master

Fix for issue #4