Made it possible for CalculatingThread to run any kind of calculations which conform to the signature (D,...)->D