Corrected a few more errors in code.