Updated the setting calculations.
Latex document still compiling.