To prevent crystallization, brush down the sides of the pan with a wet pastry brush while cooking the sugar - this helps dissolve any sugar crystals that may form on the sides of the pan.