Solves #41.