Updated Rlm code and the buildRlm/test script.