Implementing the ME+PS merging algorithm