Closes #249.