Backup because I will now refactor bf.cpp completely to use my new implementation.