Remove unused matchpairs setting
Make write action more carefully