Set up search space routine