Implements C++ code to search for power plans