Added l_0 and l to the ssResid function.