Improve calculation accuracy, fix nemomobile Bug 674. +Logging.