Added basic BIF implementation