Removed unnecessary modifies calculation.