Changed API a bit for libbarobo flexibility