Large code refactor and modify calculations so the differecne from the largest influence is used to reduce the value instead of the order.