I decreased the amount of code, Improved the readiablity, And, Hopefully, Fixed some bugs.