Reversed the order references are converted to speed up piecemeal loading.