Fixes FindBugs warnings. Closes #35.