Typos on variable names corrected