Use dispatch_sync instead of async. Fixed coding conventions.