Added system print outs for debugging and fixed my idiot for loop shit