Closes #314.