Sync Function, now it compiles