Patients with persistent AFib are screened for eligibility and undergo direct current cardioversion (DCC). If DCC is successful (defined as persistence of sinus rhythm 2 h post-DCC) patients meeting all the inclusion criteria and none of the exclusion criteria are randomly assigned to the treatment arms (Ranolazine low, intermediate, high dose or placebo, given BID).