Fixing the code, one line at a time.