Fixed linting error
Updated slope track to more closely match the original Java version