Made some modifications to the Dense SM solver