Fixed bug. Resolves #4.