Adding debuging handler