Added nif-buggy implementation