Everything works as it should now. No double print outs and cleaner code.