Added an additional function for calculating shrinkage