Updated interface to beagle-lib