New mr algorithm