Sink method changed to support the deep of sinking passed as argument