Added prime test for performance measures. Added distribute functionality.