Shape and Divertor Control in Tokamaks