Solves #31.