Extreme performance improvements, rewritten most of the SP to not use functions, this proved to be bad for performance