Pulling out sync stuff into a helper method.