Corrected how assignments were stored and removed unnecessary print statements