Adding bishop function, untested