Use local vars in new index_spec spec