Made the calculator multi threaded.