Add type attribute to bfind and added a TODO