There are some wrong variable names from copying the code.