Use closure instead of JObject