Updated to use ReactiveVar