- Removed no longer used variable
- Fixed misused constant MIDDLE_CUTOFF_VALUE