Corrected several problems.