Updated sequential solver function, equations