Fixed syntax Error and restored for testing old sync_with_server