New implementation of LBP - not completed