Starting to add lottery resolution functionality