I just thought that if @L_I_am_Awesome had a better way of making this a might as well learn his way.
Thanks to @L_I_am_awsome for ALL of the code.