Removed a bug related to time measuring. Moved time measuring to
computeResult function