Fixed center computation and value returned from threads.