Reformulated how I calculate the SS, changed how the outputs of functions are checked