Closes #405.