Removed unused parameters. Fixed a typo.