Finish first implemenation of xbob.ap