Remvoed unneeded parameters.