The Carve function