Removed unused parameters, corrected a typo