Fixed Prime integration issues.