Added sync functionality for repair, change 'sync' to 'class_sync'