Solves #40.