A system and method for controlling electromechanical valves operating in an engine is presented. According to the method, valve operation can be adjusted in a number of ways.