Increased numerical stability (to be continued).