Added the processHole function.