New bamboo logic

Signed-off-by: Borislav Angelov <borislav.angelov@gmail.com>