Optimized rana testing.