Added property for K, S, and residual so they are accessible.