Closes #310.