Improved numerical stability