Merging rest to origin