I thought it was safer to just use the scipy method rather than trying to roll my own.