Changed the energy search pattern to a valid one