Sorted out bfi_open error codes