Updated code to use RE now that UE is merged with it