OptimalBits/bull mock implementation, useful for testing