First attempt to add an afterSync function