Move sampling variables into a struct