Removed unnecessary assignments.