Solves #42.