Run calculations in new thread