changed example to support multiple concurrent calculation runs for the same master