Adapted to new documenation from xbob.extension.