Fix the type

Get rid of flush and all setters. Extract the check into insync?. Add
sync to call out the necessary bits of what used to be flush.