Removed a useless parameter and constants.