Creating the crust part of the algorithm.