See the attached document from Geoffrey Bolmier