Added ibtp function