Most functions moved to arb