Added buldge function (debug needed)