Solves #38.