More improvements to RTL support