Removed the while there is a pile/hole option in the while block.