Add the common BRC API to avoid the duplicated code