Added robust SS computation. Kudos @jgillis.