Refactor of some of the binary accretion code.