Bugfixes, math, changed convar values to dynamic