Among other small fixes, debugged beta epoch selection from Michelle's code.