Added slope calc