Adding rtl detection to core.