Made API function calls work for BfMethods