Done. Also I fixed the third memory access error.