Hi, I've committed this patch which generates MAX_UNITS as a static const int instead of a #define so that it will be correctly encapsulated within the namespace it's declared in. This allows the existency of profiling models for multiple cpus with potentially different values of MAX_UNITS. The patch also corrects a typo in a call to 'logit'. Dave