Solves #45.