Fib logic