Added code to merge XRMB data