Split out syncing of mate flags
First draft of fixed fixmates program