Removed unused function params.