Closes #302.