Fixed bug #4 on GitHub.