Tymoshenko had long been caught between two stools after her fallout with Yushchenko , with whom she had engineered the peaceful 2004 revolution that overturned a rigged election benefiting Yanukovych .