Removed unused function.
Removed unused parameters.