Essential Hidden Variables: An Exploratory Algorithm