Prepare for second order
Added header for sloped values
Working second-order