Implement vars for mutable state during searches