Finished attackKB and fixes