Move syncCapable var before async call