A system and method to control engine valve timing of an internal combustion engine. Electromechanical valves are controlled in a manner to increase fuel economy. Further, the method can adjust valve operation to regulate valve temperature.