Fixing number parameters passed to the bearing function