Updating the formula to compute the number of used registers.
Cleaning.